package com.test;

import java.security.SecureRandom;
import java.util.Base64;

public class SecretGenerator {

    public static void main(String[] args) {
        // 生成 64 字节的密钥
        SecureRandom random = new SecureRandom();
        byte[] secretBytes = new byte[64];
        random.nextBytes(secretBytes);

        String secret = Base64.getEncoder().encodeToString(secretBytes);
        System.out.println("Generated JWT Secret: " + secret);
    }

}
